package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

/**
 * 提交身份认证信息
 *
 * @author yangyang
 * @time 2020-11-18 16:43
 */
public class VerifyIdCardApi implements IRequestApi, IRequestType {

    /**
     * address	string
     * 身份证地址
     *
     * birthday	string
     * 生日
     *
     * idCard	string
     * 身份证号码
     *
     * idCardFrontUrl	string
     * 身份证正面图片
     *
     * idCardReverseUrl	string
     * 身份证反面图片
     *
     * name	string
     * 姓名
     *
     * nation	string
     * 民族
     *
     * validityEndDate	string
     * 有效结束日期
     *
     * validityStartDate	string
     * 有效起始日期
     */
    private String address;
    private String birthday;
    private String name;
    private String nation;
    private String validityEndDate;
    private String validityStartDate;
    private String idCardFrontUrl;
    private String idCardReverseUrl;
    private String idCard;

    @Override
    public String getApi() {
        return "api/certification/driver/idCard";
    }

    public VerifyIdCardApi setIdCardFrontUrl(String idCardFrontUrl) {
        this.idCardFrontUrl = idCardFrontUrl;
        return this;
    }

    public VerifyIdCardApi setIdCardReverseUrl(String idCardReverseUrl) {
        this.idCardReverseUrl = idCardReverseUrl;
        return this;
    }

    public VerifyIdCardApi setIdCard(String idCard) {
        this.idCard = idCard;
        return this;
    }

    public VerifyIdCardApi setAddress(String address) {
        this.address = address;
        return this;
    }

    public VerifyIdCardApi setBirthday(String birthday) {
        this.birthday = birthday;
        return this;
    }

    public VerifyIdCardApi setName(String name) {
        this.name = name;
        return this;
    }

    public VerifyIdCardApi setNation(String nation) {
        this.nation = nation;
        return this;
    }

    public VerifyIdCardApi setValidityEndDate(String validityEndDate) {
        this.validityEndDate = validityEndDate;
        return this;
    }

    public VerifyIdCardApi setValidityStartDate(String validityStartDate) {
        this.validityStartDate = validityStartDate;
        return this;
    }

    @Override
    public BodyType getType() {
        return BodyType.JSON;
    }
}
